import request from '../../utils/httpRequest'

const brand = '/product/product/brand'

export function getBrandList (data) {
  return request({
    url: `${brand}/list`,
    method: 'post',
    data
  })
}

export function deleteBrandByIds (data) {
  return request({
    url: `${brand}/delete`,
    method: 'delete',
    data
  })
}

export function getBrandById (id) {
  return request({
    url: `${brand}/info/${id}`,
    method: 'get'
  })
}

export function saveBrand (data) {
  return request({
    url: `${brand}/save`,
    method: 'post',
    data
  })
}

export function updateBrand (data) {
  return request({
    url: `${brand}/update`,
    method: 'put',
    data
  })
}
